package com.shangqing.system.droughtinformation.mapper;

import com.shangqing.system.droughtinformation.entity.DroughtWarning;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DroughtWarningMapper {
    @Select("select * from drought_warning")
    List<DroughtWarning> getAll();

    @Select("select * from drought_warning where id=#{warninglevelid}")
    DroughtWarning getAllById(int id);
}
